using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WF1.lab02
{
    public partial class frmProductDetail : Form
    {
        public frmProductDetail()
        {
            InitializeComponent();
        }

        public frmProductDetail(String name, String pirce, String unit, String quantity, String importdate, Image img)
        {
            InitializeComponent();
            lblName.Text = name;
            lblPirce.Text = pirce + " " + unit;
            lblQuantity.Text = quantity;
            lblImportDate.Text = importdate;
            picPicture.Image = img;
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void frmProductDetail_Load(object sender, EventArgs e)
        {
            lblTime.Text = DateTime.Now.ToLongDateString();
        }
    }
}